public class SumHeavyLoad {
    public static int Sum(int a,int b){
        return a + b;
    }
    public static double Sum(double a,double b,double c){
        return a + b + c;
    }

    public static void main(String[] args) {
        int a = 5;
        int b = 6;
        int ret =SumHeavyLoad.Sum(a , b);
        System.out.println("整数和为"+ret);
        //调用整数方法
        double d = 0.2;
        double e = 0.2;
        double f = 0.4;
        double k = SumHeavyLoad.Sum(d,e,f);
        System.out.println("小数和为"+k);
    }
}
